using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = Request.HttpMethod;
            if (str=="POST")
            {
            string name = Request.Form["TextBox1"];
            string pass = Request.Form["TextBox2"];
            Label1.Text = $"欢迎你，{name}，你的密码是：{pass}";
            }
            else if (str=="GET")
            {
            string name1 = Request.QueryString["name"];
            string pass1 = Request.QueryString["pass"];
            Label1.Text = $"欢迎你，{name1}，你的密码是：{pass1}";
            }
        }
    }
}